package redis.inaction.spring.repository;

import org.springframework.data.repository.CrudRepository;
import redis.inaction.spring.entity.City;

import java.util.Optional;

public interface CityRedisRepository extends CrudRepository<City,Long> {

    Optional<City> findOneByCode(String code);
}
